package gdut.imis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import gdut.imis.domain.Course;
import gdut.imis.vo.CourseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author JiaFu
 * @Date 2023/4/7 18:10
 */
public interface CourseMapper extends BaseMapper<Course> {
    List<Course> ifHasSameClassCourse(@Param("classId") Long classId, @Param("courseName") String courseName);

    CourseVo getStudentFirstCourse(@Param("studentId") Long studentId);

    Page<CourseVo> getPageCoursesByStuId(@Param("studentId") Long studentId, @Param("page") Page<CourseVo> page);
}
